import { configureStore } from "@reduxjs/toolkit";
import authReducer from "./modules/authSlice";
import userReducer from "./modules/userSlice";

const store = configureStore({
  reducer: {
    authSlice: authReducer,
    userSlice: userReducer,
  },
  middleware: (getDefaultMiddleware) =>
    getDefaultMiddleware({
      serializableCheck: false,
    }),
  devTools: import.meta.env.NODE_ENV !== "production",
});


export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;
export default store
